{{csrf_field()}}
<div class="layui-form-item">
    <label for="" class="layui-form-label">角色分组</label>
    <div class="layui-input-inline">
        <input type="text" name="role" value="系统管理员" class="layui-input" readonly>
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">用户名</label>
    <div class="layui-input-inline">
        <input type="text" name="username" value="{{$admin->username}}" class="layui-input" readonly>
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">真实姓名</label>
    <div class="layui-input-inline">
        <input type="text" name="name" value="{{ $admin->name ?? old('name') }}" lay-verify="required"
               placeholder="请输入昵称" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">联系邮箱</label>
    <div class="layui-input-inline">
        <input type="text" name="email" value="{{$admin->email??old('email')}}" required="email" lay-verify="email"
               placeholder="请输入邮箱" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">联系手机</label>
    <div class="layui-input-inline">
        <input type="text" name="phone" value="{{$admin->phone??old('phone')}}" required="phone" lay-verify="phone"
               placeholder="请输入手机号" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
    </div>
</div>